const express = require("express");
const app = express();
app.get("/info",(req,res)=>{
	// console.log(req.headers.referer);// http://127.0.0.1:8000/
	// changeOrigin:true----->127.0.0.1:9000
	// changeOrigin:false----->127.0.0.1:8000
	console.log(req.headers.host);// 127.0.0.1:9000
	
	res.json({
		ok:1,
		msg:"get->info"
	})
});
// app.get("/api/info",(req,res)=>{
// 	res.json({
// 		ok:1,
// 		msg:"get->api->info"
// 	})
// });
app.listen(9000,()=>{
	console.log("success");
})